{% extends 'base.html' %}

{% block content %}
<div class="container" style="margin-top: 300px">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card">
                <div class="card-header bg-primary text-white">登录</div>
                <div class="card-body">
                    <form method="POST">
                        {% csrf_token %}
                        {{ form.as_p }}
                        <button type="submit" class="btn btn-primary">登录</button>
                    </form>
                </div>
            </div>
            <div class="text-center mt-3">
                <small>还没有帐号？<a href="{% url 'register' %}">注册</a></small>
            </div>
        </div>
    </div>
</div>
{% endblock %}
